home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
AHIGHELE.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
52 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_AHighElement( axArray ) --> nHighElement
PARAMETERS:
axArray : array of CHAR, DATE, or NUM elements
SHORT:
Find element with highest numeric, char or date value.
DESCRIPTION:
_AHighElement() returns the element number associated with the highest
value from an array of Character Strings, Dates or Numerics.
ALL elements must be of the same type!
If the array contains mixed elements, a run-time error will occur. If the
array in not CHAR, DATE, or NUM, the return value is NIL.
NOTE:
See also:
_ALowVal() which returns the lowest value.
_AHighVal() which returns the highest value.
_ALowElement() which returns the element number associated with the
lowest value.
EXAMPLE:
LOCAL aArray := { 1,5,3,9,12,7 }
t = _AHighElement( aArray )
Result: t = 5
LOCAL aArray := { 'Wallace', 'Jones', 'Taylor', 'Abdul' }
t = _AHighElement( aArray )
Result: t = 1
******************************************************************************/